package com.enjoylearning.content.feignClient;

import com.enjoylearning.content.feignClient.fallBack.SearchClientFallbackFactory;
import com.enjoylearning.content.feignClient.po.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "search",fallbackFactory = SearchClientFallbackFactory.class)
public interface SearchClient {

    @PostMapping("/search/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);
}
